package com.meizi.mall.product.feign;

import com.meizi.core.tool.api.R;
import com.meizi.mall.common.to.SkuStockTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2021/1/20 9:16
 */
@FeignClient("mall-ware")
public interface WareFeignService {
    /**
     * 根据skuid 查看是否有库存
     */
    @PostMapping("/ware/wmswaresku/skuStock")
    R getSkuStock(@RequestBody List<Long> skuIds);
}
